//
//  TKAccountManager.h
//  BasketBallLeagues
//
//  Created by 小禹宝宝 on 2017/5/16.
//  Copyright © 2017年 kenshin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TKAccountInfo.h"


/// 帐号管理类
@interface TKAccountManager : NSObject
@property (nonatomic, strong) TKAccountInfo *accountInfo; ///< 帐号信息
+ (instancetype)sharedManager;

+ (NSString *)userID;
+ (NSString *)userName;

/// 登录状态
+ (BOOL)isLogin;

/// 登录操作
+ (void)loginWithParams:(NSDictionary *)params anddecodeClass:(Class)decodeClass completion:(void (^)(NSInteger ,NSString *))completion;

/// 退出操作
+ (void)logout;

+ (void)clear;

///更新会员信息
+ (void)requestUserInfoCompletion:(void(^)())completion;

/// 持久化会员信息到本地
+ (void)saveAccountInfo;


@end
